import java.util.*;

/**
 * @author LKQ
 * @date 2022/6/13 16:33
 * @description 按顺序写入
 */
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextLine()) {
            String str = in.nextLine();
            char[] c = str.toCharArray();
            List<Character> list = new ArrayList<>();
            int len = str.length();
            // 按规则1 和 2 写入字母
            for (int i = 0; i < 26; i++) {
                for (int j = 0; j < len;  j++) {
                    if (c[j] - 'a' == i || c[j] - 'A' == i) {
                        list.add(c[j]);
                    }
                }
            }
            int j = 0;
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < len; i++) {
                if (!Character.isLetter(c[i])) {
                    sb.append(c[i]);
                }else {
                    sb.append(list.get(j++));
                }
            }
            System.out.println(sb);
        }
    }
}
